package com.engineering.elink.domain;

import io.swagger.annotations.ApiParam;

import java.util.Date;
import java.util.List;
public class Blog {
	
    private String blogId;//主键

    @ApiParam(value="博文标题",required=true)
    private String title;//标题

    @ApiParam(value="博文标签集合",required=true)
    private String labelIds;//标签集合

    @ApiParam(value="博文一级分类id",required=true)
    private Integer tcId; //一级分类id

    @ApiParam(value="博文二级分类id",required=true)
    private Integer scId; //二级分类id

    @ApiParam(value="对谁可见，1--仅自己可见，2--仅好友可见,3--对所有人可见 默认为3 ",required=true,defaultValue="3")
    private Integer open;//是否对谁开放 1--仅自己可见，2--仅好友可见,3--对所有人可见
    
    @ApiParam(value="是否允许别人评论，1--允许所有人评论，2--不允许所有人评论,3--好友可以评论  默认为1 ",required=true,defaultValue="1")
    private Integer commentOpen;//是否允许别人评论

    @ApiParam(value="博文类型,0--个人博文1--企业博文 2--个人简历的站内作品,默认0",required=true,defaultValue="0")
    private Integer type;//类型，0--个人博文1--企业博文 2--个人简历的站内作品

    private Date createTime;// 创建时间

    private String userId;//创建者用户ID

    private Date updateTime;//更新时间

    @ApiParam(value="博文内容",required=true)
    private String introduction;//内容
    
    private int commentCount;//评论数
    
    private   int browseCount;//浏览量
    
    private int collectionCount;//收藏数
    
    private Byte authStatus; //是否审核 0--审核中，1--通过审核 2--审核失败
    
    
    //外关联
    private List<BlogDc> dcList; //详情分类
    
    private List<Label>labelList;//标签集合
    
    private TopCategory topCategory ;//一级分类
    
    private SecondaryCategory  secondaryCategory;//二级分类
    
	private   String nickname;
	
	private String logo;
	
    public String getBlogId() {
        return blogId;
    }

    public void setBlogId(String blogId) {
        this.blogId = blogId == null ? null : blogId.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getLabelIds() {
        return labelIds;
    }

    public void setLabelIds(String labelIds) {
        this.labelIds = labelIds == null ? null : labelIds.trim();
    }

    public Integer getTcId() {
        return tcId;
    }

    public void setTcId(Integer tcId) {
        this.tcId = tcId;
    }

    public Integer getScId() {
        return scId;
    }

    public void setScId(Integer scId) {
        this.scId = scId;
    }

    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

	public List<BlogDc> getDcList() {
		return dcList;
	}

	public void setDcList(List<BlogDc> dcList) {
		this.dcList = dcList;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public List<Label> getLabelList() {
		return labelList;
	}

	public void setLabelList(List<Label> labelList) {
		this.labelList = labelList;
	}

	public TopCategory getTopCategory() {
		return topCategory;
	}

	public void setTopCategory(TopCategory topCategory) {
		this.topCategory = topCategory;
	}

	public SecondaryCategory getSecondaryCategory() {
		return secondaryCategory;
	}

	public void setSecondaryCategory(SecondaryCategory secondaryCategory) {
		this.secondaryCategory = secondaryCategory;
	}

	public int getBrowseCount() {
		return browseCount;
	}

	public void setBrowseCount(int browseCount) {
		this.browseCount = browseCount;
	}

	public Integer getCommentOpen() {
		return commentOpen;
	}

	public void setCommentOpen(Integer commentOpen) {
		this.commentOpen = commentOpen;
	}

	public int getCollectionCount() {
		return collectionCount;
	}

	public void setCollectionCount(int collectionCount) {
		this.collectionCount = collectionCount;
	}

	public Byte getAuthStatus() {
		return authStatus;
	}

	public void setAuthStatus(Byte authStatus) {
		this.authStatus = authStatus;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}
}